home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
Booting Gallery
/
Booting Gallery (source)
/
(Libraries)
/
Fluent Libraries
/
Utils
/
CriticalSection.h
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-06-22
|
436 b
|
31 lines
|
[
TEXT/BROW
]
#ifndef __CriticalSection_H__
#define __CriticalSection_H__
/***
* Created by Bill Hubauer on Mon, Jan 29, 1996 @ 11:24 AM.
*
***/
#ifndef __Semaphore__
#include "Semaphore.h"
#endif
class CriticalSection
{
public:
CriticalSection(ConstStr31Param name = NULL);
void Enter();
void Exit();
static SInt32 GetCount() {return sCount;}
protected:
Str31 fName;
CSemaphore fFlag;
static SInt32 sCount;
};
#endif